package service

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"post/handler/request"
)

func User(c *gin.Context) {
	var form request.DelPost
	if err := c.ShouldBind(&form); err != nil {
		c.JSON(http.StatusBadRequest, gin.H{
			"code": 400,
			"msg":  "参数错误",
		})
		return
	}
	c.JSON(http.StatusOK, gin.H{
		"code": 200,
		"msg":  "删除帖子成功",
	})
	return
}
func Review(c *gin.Context) {
	var form request.DelPost
	if err := c.ShouldBind(&form); err != nil {
		c.JSON(http.StatusBadRequest, gin.H{
			"code": 400,
			"msg":  "参数错误",
		})
		return
	}
	c.JSON(http.StatusOK, gin.H{
		"code": 200,
		"msg":  "删除帖子成功",
	})
	return
}
